<?php
//print_r($groupcontent);
$flag=0;
if($act=="edit" && $groupcontent!=null)
{
	$flag=1;
	
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<link rel="stylesheet" href="<?php echo base_url();?>css/reset.css" />
<link rel="stylesheet" href="<?php echo base_url();?>css/text.css" />
<link rel="stylesheet" href="<?php echo base_url();?>css/960_24_col.css" />
 <link rel="stylesheet" href="<?php echo base_url();?>css/jquery-ui-1.8.21.custom.css" />
 <link rel="stylesheet" href="<?php echo base_url();?>css/style.css" />
 <link rel="stylesheet" href="<?php echo base_url();?>css/faary.css" type="text/css" />
 <script type="text/javascript" src="<?php echo base_url();?>js/jquery-1.7.2.min.js"></script>
 <script type="text/javascript" src="<?php echo base_url();?>js/jquery-ui-1.8.21.custom.min.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>js/scripts.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>js/jquery.validate.js"></script>
<style>
.name{width:500px;}
</style>

</head>

<body>
	
	<div class="principal container_24">
		
		<!--logo-->
		<div class="logo grid_24">
			<div class="grid_1">&nbsp;</div>
			<div class="grid_4 logoimage"><img src="<?php echo base_url();?>img/logo.png" height="90"></div>
			<div class="logout grid_5"><a href="index.php?loginprocess/loginout"><img src="<?php echo base_url();?>img/bt_logout.jpg"/></a></div>
		</div><!-- end logo-->
		
		<!--menupricipal-->
		<div class="menuprincipal grid_24">
			<a class="yearlist " href="index.php?webctrl/web_adminmenu">Back to List </a>
		</div>
		<!-- end menupricipal-->
				
			<div class="descprincipal grid_22">
				ADD/Edit Group travel
			</div>
			
			<div class="grid_24 listcontent">
				<h1>ADD/Edit Group Travel</h1>
				<div class="grid_22 list">
		
<?php if ($flag ==1){?>
<form method="post" action="index.php?webctrl/sub_editgroup" class="iform grid_18 formbus" >
<input type="hidden" name="idweb_group" value="<?php echo $groupcontent[0]['idweb_group'] ?>"/>
<?php }else{?>
<form method="post" action="index.php?webctrl/subgroup" class="iform grid_18 formbus" >
<?php } ?>	
<div id="imessageOK">Thank you! Message Sent!</div>
<div id="imessageERROR">ERROR: Message Not Sent!</div>
<ul class="">
<li class="iheader">Adit/Edite Group Travel</li>
<li><label for="hotelinfo">*  Name -En</label><input type="text"  class="name" name="name_en"  value="<?php if($flag==1) echo $groupcontent[0]['name_en'] ;?>"/></li>
<li><label for="hotelinfo">* Name -Fr</label><input type="text" class="name"name="name_fr" value="<?php if($flag==1) echo $groupcontent[0]['name_fr'] ;?>"/></li>
<li><label for="hotelinfo">* Name -Cn</label><input type="text" class="name" name="name_cn"  value="<?php if($flag==1) echo $groupcontent[0]['name_cn'] ;?>"/></li>
<li><label for="hotelinfo">* Description -En</label><textarea class="itextarea" name="desc_en" id="HotelInfo"><?php if($flag==1) echo $groupcontent[0]['desc_en'] ;?></textarea></li>
<li><label for="hotelinfo">*  Description -Fr</label><textarea class="itextarea"  name="desc_fr" id="HotelInfo"><?php if($flag==1) echo $groupcontent[0]['desc_fr'] ;?></textarea></li>
<li><label for="hotelinfo">*  Description -Cn</label><textarea class="itextarea" name="desc_cn" id="HotelInfo"><?php if($flag==1) echo $groupcontent[0]['desc_cn'] ;?></textarea></li>
<li><label for="hotelinfo">* Navigator Sector</label>
<select name="sector" >
<option value="0" <?php  if($flag==1 &&  $groupcontent[0]['sector']==0){?>selected<?php }?>>Bus tours</option>
<option value="1" <?php  if($flag==1 &&  $groupcontent[0]['sector']==1){?>selected<?php }?>>Asia</option>
</select>
</li>
<li><label>&nbsp;</label><input type="submit" class="ibutton"  name="SendaMessage" id="SendaMessage" value="Submit" /></li>

</ul></form>
				</div>
			</div>
		
	</div><!--end principal-->
</body>
</html>